package org.edu.modules.pub.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class UpFileInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("文件id")
    private long id;
    @ApiModelProperty("文件路径")
    private String path;

    /*  8 */
    public void setId(long id) {
        this.id = id;
    }

    @ApiModelProperty("文件大小")
    private long size;
    private String md5;
    private String sha1;

    public void setPath(String path) {
        this.path = path;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public void setSha1(String sha1) {
        this.sha1 = sha1;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.pub.entity.UpFileInfo)) return false;
        org.edu.modules.pub.entity.UpFileInfo other = (org.edu.modules.pub.entity.UpFileInfo) o;
        if (!other.canEqual(this)) return false;
        if (getId() != other.getId()) return false;
        if (getSize() != other.getSize()) return false;
        Object this$path = getPath(), other$path = other.getPath();
        if ((this$path == null) ? (other$path != null) : !this$path.equals(other$path)) return false;
        Object this$md5 = getMd5(), other$md5 = other.getMd5();
        if ((this$md5 == null) ? (other$md5 != null) : !this$md5.equals(other$md5)) return false;
        Object this$sha1 = getSha1(), other$sha1 = other.getSha1();
        return !((this$sha1 == null) ? (other$sha1 != null) : !this$sha1.equals(other$sha1));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.pub.entity.UpFileInfo;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        long $id = getId();
        result = result * 59 + (int) ($id >>> 32L ^ $id);
        long $size = getSize();
        result = result * 59 + (int) ($size >>> 32L ^ $size);
        Object $path = getPath();
        result = result * 59 + (($path == null) ? 43 : $path.hashCode());
        Object $md5 = getMd5();
        result = result * 59 + (($md5 == null) ? 43 : $md5.hashCode());
        Object $sha1 = getSha1();
        return result * 59 + (($sha1 == null) ? 43 : $sha1.hashCode());
    }

    public String toString() {
        return "UpFileInfo(id=" + getId() + ", path=" + getPath() + ", size=" + getSize() + ", md5=" + getMd5() + ", sha1=" + getSha1() + ")";
    }


    public long getId() {
        /* 13 */
        return this.id;
    }

    public String getPath() {
        /* 15 */
        return this.path;
    }

    public long getSize() {
        /* 18 */
        return this.size;
    }

    public String getMd5() {
        /* 20 */
        return this.md5;
    }

    public String getSha1() {
        /* 22 */
        return this.sha1;
    }
}



